package com.tc.picturesynthesis.first.controller;

import com.tc.picturesynthesis.first.domain.UserInfo;
import com.tc.picturesynthesis.first.util.PicSynthesisUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

import static com.tc.picturesynthesis.first.util.PicSynthesisUtil.Head_Test;

public class TestController {
    /**
     * 测试方法  生成图片 需要在PicSynthesisUtil这个类里面指定一些变量,自己去看下
     *
     * @param args args
     * @throws IOException IOException
     */
    public static void main(String[] args) throws IOException {

        UserInfo user = new UserInfo();
        user.setUserId(111);
        user.setHeadImgUrl(Head_Test);
        user.setInviteCode("123456");

        new PicSynthesisUtil().initImage(user);

    }
}
